﻿using System;

namespace my_console
{
    class Program
    {
        static void Main(string[] args)
        {
            double totalArea = 0;
            for (int i = 0; i < 10; i++)
            {
                string[] shapeTypes = { "rectangle", "square", "triangle" };
                string randomShapeType = shapeTypes[new Random().Next(shapeTypes.Length)];

                Shape shape = ShapeFactory.CreateShape(randomShapeType);
                double area = shape.CalculateArea();
                totalArea += area;
            }

            Console.WriteLine($"Total Area: {totalArea}");
        }
    }

}
